package com.ruoyi.personnel.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 固定资产管理对象 sys_user_assets
 * 
 * @author ruoyi
 * @date 2022-03-19
 */
public class SysUserAssets extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private SysUser user;

    public SysUser getUser() {
        return user;
    }

    private SysUser user1;

    public SysUser getUser1() {
        return user1;
    }

    /** ID */
    private Long id;

    /** 存放位置 */
    @Excel(name = "存放位置")
    private String assetsSite;

    /** 编码 */
    @Excel(name = "编码")
    private String assetsNum;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String assetsName;

    /** 型号 */
    @Excel(name = "型号")
    private String assetsType;

    /** 负责人 */
    @Excel(name = "负责人")
    private Long assetsdutyId;

    /** 领用人 */
    @Excel(name = "领用人")
    private Long assetsuserId;

    /** 使用日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date assetsOutDate;

    /** 归还日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date assetsInDate;

    /** 假删除 */
    private Integer delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAssetsSite(String assetsSite) 
    {
        this.assetsSite = assetsSite;
    }

    public String getAssetsSite() 
    {
        return assetsSite;
    }
    public void setAssetsNum(String assetsNum) 
    {
        this.assetsNum = assetsNum;
    }

    public String getAssetsNum() 
    {
        return assetsNum;
    }
    public void setAssetsName(String assetsName) 
    {
        this.assetsName = assetsName;
    }

    public String getAssetsName() 
    {
        return assetsName;
    }
    public void setAssetsType(String assetsType) 
    {
        this.assetsType = assetsType;
    }

    public String getAssetsType() 
    {
        return assetsType;
    }
    public void setAssetsdutyId(Long assetsdutyId) 
    {
        this.assetsdutyId = assetsdutyId;
    }

    public Long getAssetsdutyId() 
    {
        return assetsdutyId;
    }
    public void setAssetsuserId(Long assetsuserId) 
    {
        this.assetsuserId = assetsuserId;
    }

    public Long getAssetsuserId() 
    {
        return assetsuserId;
    }
    public void setAssetsOutDate(Date assetsOutDate) 
    {
        this.assetsOutDate = assetsOutDate;
    }

    public Date getAssetsOutDate() 
    {
        return assetsOutDate;
    }
    public void setAssetsInDate(Date assetsInDate) 
    {
        this.assetsInDate = assetsInDate;
    }

    public Date getAssetsInDate() 
    {
        return assetsInDate;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("assetsSite", getAssetsSite())
            .append("assetsNum", getAssetsNum())
            .append("assetsName", getAssetsName())
            .append("assetsType", getAssetsType())
            .append("assetsdutyId", getAssetsdutyId())
            .append("assetsuserId", getAssetsuserId())
            .append("assetsOutDate", getAssetsOutDate())
            .append("assetsInDate", getAssetsInDate())
            .append("delFlag", getDelFlag())
                .append("user", getUser())
                .append("user1", getUser1())
            .toString();
    }
}
